package cn.xianshu.mapper;

import cn.xianshu.domain.Meal;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * 套餐表 Mapper 接口
 * </p>
 *
 * @author Uncle Xian
 * @since 2021-11-22
 */
public interface MealMapper extends BaseMapper<Meal> {

    /**
     * 保存套餐
     * @param mealId
     * @param loginId
     * @param expireTime
     * @param state
     */
    void saveRelaationWithLogin(@Param("mealId") Long mealId,
                                @Param("loginId") Long loginId,
                                @Param("expireTime") Date expireTime,
                                @Param("state") int state);
}
